# -*- coding: utf-8 -*-
# @Time    : 2024/5/22 8:20 下午
# @Author  : Hoey


# Person 类
class Person():

    def __init__(self, xname, age):
        self.名字 = xname
        self.年龄 = age

    # 说话
    def sayHello(self):
        print(f"My name is  {self.name}")

    # 吃饭
    def eat(self):
        print(f"{self.name} 正在吃饭")

# xm Person 的实例
# 实例 -> 实例化的对象
person1 = Person('小明', 18)
person1.sayHello()
person1.eat()

person2 = Person('小王', 18)
person2.eat()


